from flask_restful import fields
user_fields = {
    'uid':fields.Integer,
    'account':fields.String,
    'uname':fields.String,
    'profile_photo':fields.String,
    'gender':fields.Integer,
    'created_time':fields.DateTime
}

channels_fields = {
    "cid":fields.Integer,
    "cname":fields.String,
    "sequence":fields.Integer,
    "ctime":fields.DateTime
}

raletion_fields = {
    "user_id":fields.Integer,
    "foller_id":fields.Integer,
    "relation":fields.Integer,
    "create_time":fields.DateTime
}

news_fields = {
    'user_id':fields.Integer,
    'nid':fields.Integer,
    'title':fields.String,
    'cover':fields.String,
    'content':fields.String,
    'comment_count':fields.Integer,
    'good_count':fields.Integer,
    'ctime':fields.DateTime,
    'is_follow':fields.Boolean,
    'is_like':fields.Boolean,
    'is_collection':fields.Boolean
}
